package com.taijihuabao.modules.model.checkin.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 考勤打卡信息
 *
 * @author Tu
 * @date 2022/2/9 16:09
 */
@Data
@ApiModel("考勤打卡信息")
public class CheckInInfoVO {

    /**
     * 考勤主键
     */
    @ApiModelProperty(value = "考勤主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 考勤日期
     */
    @ApiModelProperty(value = "考勤日期")
    private String dateTime;

    /**
     * 用户Id
     */
    @ApiModelProperty(value = "打卡用户Id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long uid;

    /**
     * 打卡时间
     */
    @ApiModelProperty(value = "打卡时间")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date clockTime;

    /**
     * 打卡地址
     */
    @ApiModelProperty(value = "打卡地址")
    private String address;

    /**
     * 打卡种类
     */
    @ApiModelProperty(value = "打卡种类")
    private Long clockType;

    /**
     * 打卡状态id
     */
    @ApiModelProperty(value = "打卡状态id")
    private Long stateId;

    /**
     * 是否更新
     */
    @ApiModelProperty(value = "是否更新")
    private Integer isRenewal;

}
